package com.zbh.uexam.service;

import com.zbh.uexam.domain.Question;
import com.zbh.uexam.domain.User;
import com.zbh.uexam.viewmodel.admin.question.QuestionEditRequestVM;
import com.zbh.uexam.viewmodel.admin.question.QuestionPageRequestVM;
import com.github.pagehelper.PageInfo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface QuestionService extends BaseService<Question> {

    PageInfo<Question> page(QuestionPageRequestVM requestVM);

    Question insertFullQuestion(QuestionEditRequestVM model, Integer userId);

    Question updateFullQuestion(QuestionEditRequestVM model);

    QuestionEditRequestVM getQuestionEditRequestVM(Integer questionId);

    QuestionEditRequestVM getQuestionEditRequestVM(Question question);

    Integer selectAllCount();

    List<Integer> selectMothCount();

    void analyzeExcel(MultipartFile file, User user);

    List<Question> selectBySubjectId(Integer subjectId);

}
